package com.deyuanyun.pic.pig.controller.query;

import com.deyuanyun.pic.common.util.StringUtils;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 业务查询参数实体类
 * @author lijun
 * @date 2016-08-26
 *
 * History: [修改人][时间][修改描述]
 */
public class QueryListVO {
    //任务ID
    private String taskId;
    //任务名称
    private String taskName;
    //管道Id
    private String lineId;
    //起始点ID
    private String fromValId;
    //终止点ID
    private String toValId;
    //起始点位置绝对距离
    private BigDecimal beginMile;
    //终止点位置绝对距离
    private BigDecimal endMile;
    //收发球易位--易位为1  未易位为0
    private String reverse;
    //清管类型ID
    private String pagType;
    //清管开始时间
    private Date beginTime;
    //清管结束时间
    private Date endTime;
    //清管任务状态
    private Integer[] staus;

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public String getLineId() {
        return lineId;
    }

    public void setLineId(String lineId) {
        this.lineId = lineId;
    }

    public String getFromValId() {
        return fromValId;
    }

    public void setFromValId(String fromValId) {
        this.fromValId = fromValId;
    }

    public String getToValId() {
        return toValId;
    }

    public void setToValId(String toValId) {
        this.toValId = toValId;
    }

    public BigDecimal getBeginMile() {
        return beginMile;
    }

    public void setBeginMile(BigDecimal beginMile) {
        this.beginMile = beginMile;
    }

    public BigDecimal getEndMile() {
        return endMile;
    }

    public void setEndMile(BigDecimal endMile) {
        this.endMile = endMile;
    }

    public String getPagType() {
        return pagType;
    }

    public void setPagType(String pagType) {
        this.pagType = pagType;
    }

    public Date getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Integer[] getStaus() {
        return staus;
    }

    public void setStaus(Integer[] staus) {
        this.staus = staus;
    }

    public String getReverse() {
        return StringUtils.isNotNullEmpty(reverse)? reverse :"0";
    }

    public void setReverse(String reverse) {
        this.reverse = reverse;
    }

}
